package com.tbit.main.service.impl;

import com.tbit.main.dao.core.BatteryModelChartDao;
import com.tbit.main.pojo.BatteryModelChart;
import com.tbit.main.service.BatteryModelChartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author LMY
 * @create 2021-05-27 16:40
 * 电池型号
 */
@Service("batteryModelChartService")
public class BatteryModelChartServiceImpl implements BatteryModelChartService {

    @Autowired
    private BatteryModelChartDao batteryModelChartDao;

    @Override
    public void insert(BatteryModelChart batteryModelChart) {
        batteryModelChartDao.insert(batteryModelChart);
    }

    @Override
    public void update(BatteryModelChart batteryModelChart) {
        batteryModelChartDao.update(batteryModelChart);
    }

    @Override
    public void del(Integer modelId) {
        batteryModelChartDao.del(modelId);
    }

    @Override
    public BatteryModelChart getByModelId(Integer modelId) {
        return batteryModelChartDao.getByModelId(modelId);
    }

    @Override
    public List<BatteryModelChart> getByAccountId(Integer accountId) {
        return batteryModelChartDao.getByAccountId(accountId);
    }

    @Override
    public List<BatteryModelChart> getAll() {
        return batteryModelChartDao.getAll();
    }

    @Override
    public BatteryModelChart getBatteryBrand(BatteryModelChart batteryModelChart) {
        return batteryModelChartDao.getBatteryBrand(batteryModelChart);
    }
}
